//引入http文件
let http =require('http');
const { url } = require('inspector');

//创建服务器
let server = http.createServer()
function doaction (req,res){
    if(req.url=='/index'|| req.url=='/'){
        res.end('<h1>首页<h1>')
    }
}
//绑定端口
server.listen(8585,'www.uiuiuiui.com',()=>{
    console.log('创建成功')
})